]> dgit.raspbian.org Git - gnome-shell.git/commit
MessageTray: untangle click notifications
authorDan Winship <danw@gnome.org>
Thu, 30 Sep 2010 20:41:38 +0000 (16:41 -0400)
committerDan Winship <danw@gnome.org>
Tue, 12 Oct 2010 21:21:58 +0000 (17:21 -0400)
commitde16108dff4dce105d1194d8a5cd18e8af29f9aa
tree1f147dd9704ec0f5b7ddfd3ac7ae2e0f378e9c05
parent80f23841e4d3fd1800fa48520b23154787a61c9c
MessageTray: untangle click notifications

Previously, when you clicked on a notification, it would call
this.source.clicked(), which would emit a 'clicked' signal on the
source, and then various other stuff would happen from there. This
used to make a little bit of sense, when clicking on a notification
was supposed to do the same thing as clicking on its source, but makes
less sense now, when clicking on the source itself *doesn't* call
source.clicked()...

Change it so that when you click on a notification, the notification
emits 'clicked' itself, and the source notices that and calls its
notificationClicked() method, and the various source subclasses do
what they need to do with that, and Source no longer has a clicked
method/signal.

https://bugzilla.gnome.org/show_bug.cgi?id=631042
js/ui/messageTray.js
js/ui/notificationDaemon.js
js/ui/telepathyClient.js
js/ui/windowAttentionHandler.js